import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../config/base_configuration.dart';

//todo:用于text组件复制
class CopyTextWidget extends StatelessWidget {
  final String title;
  final TextStyle? style;

  CopyTextWidget({Key? key, this.title: "", this.style}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SelectableText(
      title,
      style: style ??
          TextStyle(
            fontSize: 16.sp,
            fontWeight: FontWeight.bold,
            color: ColorConf.normal,
          ),
      // showCursor: true,
      cursorColor: Colors.red,
      cursorRadius: Radius.circular(10),
      cursorWidth: 1,
    );
  }
}
